<template>
  <div>
    <div
      :style="{ width: width, height: height, backgroundColor: bgClosr }"
    ></div>

    <hr />
    <div :class="['box', 'box1']"></div>

    <hr />
    <div :class="{ box: true, box1: false }"></div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data() {
    return {
      width: "200px",
      height: "200px",
      bgClosr: "green",
    };
  },
  computed: {},
  watch: {},
  created() {},
  methods: {},
};
</script>

<style scoped>
.box {
  width: 200px;
  height: 200px;
  background-color: blue;
}

.box1 {
  width: 300px;
  height: 300px;
  background-color: red;
}
</style>
